]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-global: Handle empty variants better
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 14 Oct 2013 04:00:24 +0000 (00:00 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 21 Oct 2013 18:13:21 +0000 (14:13 -0400)
commitc9b73ac7312774b4cfa7c40323f56b5bb9f8fdc8
tree1332d76e7951037a99e5576885fe0e1799af5249
parente0b87f1e143447b375e321212a86b05bdb5375ea
shell-global: Handle empty variants better

In cases where we have an array of 0 elements or similar, the
data returned may be NULL. Since g_file_replace_contents will
assert in this case, simply check for this and delete the file
instead.

https://bugzilla.gnome.org/show_bug.cgi?id=710137
src/shell-global.c